package com.qf.manager.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class MainController {

        @RequestMapping(value = "/join/{path}")
        public String  index(@PathVariable("path") String path){


            return path;
        }
        @RequestMapping(value = "/pages/{path}/{path2}")
        public String pagesIndex(@PathVariable("path")String path,@PathVariable("path2")String path2){

            return  "pages/"+path+"/"+path2;
        }

    @RequestMapping(value = "/pages/{path}")
    public String pagesIndex2(@PathVariable("path")String path){

        return  "pages/"+path;
    }
}
